package com.bw.service;

import com.bw.bean.User;
import com.bw.bean.User1;
import com.bw.dao.IDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IServiceImpl implements IService {
    @Autowired
    IDao iDao;

    @Override
    public int add(User1 user1) {
        return iDao.add(user1);
    }

    @Override
    public List<User> list() {
        return iDao.list();
    }

    @Override
    public int del(int id) {
        return iDao.del(id);
    }

    @Override
    public int add1(List<User1> list) {
        return iDao.add1(list);
    }

    @Override
    public int del1(String id) {
        return iDao.del1(id);
    }

    @Override
    public List<User1> list2(String name) {
        return iDao.list2(name);
    }

    @Override
    public List<User1> list3() {
        return iDao.list3();
    }
}
